package com.egreen.order.ex.exceptions;

public class UserException extends ServiceException {
    public UserException(Integer states, String message) {
        super(message, states);
        if (states == null) {
            throw new IllegalArgumentException("使用UserException必须指定错误时的业务状态码！");
        }
    }
}
